package com.kingboy.kbg.uums;

import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
import com.kingboy.kbg.auth.client.EnableKbgAuthClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Create By 郭金宝 on 2018/6/15.<br>
 */
@SpringBootApplication(exclude = PageHelperAutoConfiguration.class)
@EnableDiscoveryClient
@EnableHystrix
@EnableTransactionManagement
@ComponentScan(excludeFilters = {
        @ComponentScan.Filter(type = FilterType.REGEX,pattern = "com.kingboy.kbg.uums.rest.[a-zA-Z]+.api.hystrix.[a-zA-Z]+")
})
@EnableKbgAuthClient
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}
